home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / wpasupplicant.postinst < prev    next >
Encoding:
Text File  |  2010-11-28  |  875 b   |  37 lines

  1. #!/bin/sh
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was installed:
  5. #       <postinst> configure <old-version>
  6. #
  7. #
  8. # If prerm fails during upgrade or fails on failed upgrade:
  9. #       <old-postinst> abort-upgrade <new-version>
  10. #
  11. # If prerm fails during deconfiguration of a package:
  12. #       <postinst> abort-deconfigure in-favour <new-package> <version>
  13. #                  removing <old-package> <version>
  14. #
  15. # If prerm fails during replacement due to conflict:
  16. #       <postinst> abort-remove in-favour <new-package> <version>
  17.  
  18. set -e
  19.  
  20. case "$1" in
  21.     configure)
  22.         # Add the netdev group unless it's already there
  23.         if ! getent group netdev >/dev/null; then
  24.             addgroup --quiet --system netdev || true
  25.         fi
  26.         ;;
  27.     abort-upgrade|abort-deconfigure|abort-remove)
  28.         ;;
  29.     *)
  30.         echo "$0 called with unknown argument \`$1'" 1>&2
  31.         exit 1
  32.         ;;
  33. esac
  34.  
  35.  
  36. exit 0
  37.